package com.hmdp.utils;

/**
 * hm-dianping
 * com.hmdp.utils
 * zjj19
 * 2024/6/14
 * 21:14
 * 2024 06 37
 */
public interface ILock {

    /**
     * 尝试获取锁
     * @return
     */
    boolean tryLock(Long timeoutSec);

    /**
     * 释放锁
     */
    void unlock();
}
